package main

import "fmt"

func insertSort(data [10]int) (result [10]int){

	for i:=0;i<len(data);i++{
		result[i] = data[i]
		for j:=0;j<i;j++{
			if result[i] < result[j] {
				temp := result[i]
				result[i] = result[j]
				result[j] = temp
			}
		}
	}
	return
}

func main(){
	var arr = [10]int{4,8,1,0,9,7,2,3,5,6}
	data := insertSort(arr)

	for i := range data {
		fmt.Println(data[i])
	}
}

